package com.mall.service;

import com.mall.po.Activity;
import com.mall.po.Discounts;

import java.util.List;

/**
 * @author zhanghui
 * @ClassName DiscountsService
 * @Description TODO
 * @Date 2021/1/6 22:15
 * @Version 1.0
 **/
public interface DiscountsService {
    //通过优惠名查询优惠信息
    public  Discounts findDiscountsByName(String discountsname);

    //添加优惠
    public int addDiscounts(Discounts discounts);

    //修改优惠
    public int updateDiscounts(Discounts discounts);

    //删除优惠
    public int deleteDiscounts(int discountsid);

    //批量删除优惠
    public boolean deleteDiscountList(Integer[] discountsids);

    //分页查询优惠
    public List<Discounts> findDiscountsByPage(int page,int pagesize);

}
